//
//  MWTextureCell.m
//  XiRan-iOS
//
//  Created by Richfit on 2019/10/17.
//  Copyright © 2019 Wood. All rights reserved.
//

#import "MWFilterDropMenuCell.h"

@implementation MWFilterDropMenuCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (!(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
        return nil;
    }
    
    [self setupPageSubviews];
    [self layoutPageSubviews];
    
    return self;
}

- (void)setupPageSubviews {
    _titleLB = [[UILabel alloc] init];
    _titleLB.font = MWFont(12);
    _titleLB.textColor = MWHexColor(@"#333333");
    _titleLB.text = @"12";
    [self.contentView addSubview:_titleLB];
    
    _stateIV = [[UIImageView alloc] init];
    _stateIV.image = [UIImage imageNamed:@"ic_selected"];
    _stateIV.hidden = YES;
    [self.contentView addSubview:_stateIV];
}

- (void)layoutPageSubviews {
    [_titleLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).offset(16);
        make.centerY.equalTo(self.contentView);
    }];
    
    [_stateIV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.contentView).offset(-16);
        make.centerY.equalTo(self.contentView);
    }];
}

@end
